#ifndef COMMONOPTIONSTABLEMODEL_H
#define COMMONOPTIONSTABLEMODEL_H

#include <QAbstractTableModel>
#include <QSharedPointer>
#include "CommonOptions.h"

class CommonOptionsTableModel: public QAbstractTableModel {
private:
    QSharedPointer<CommonOptions> opts;
public:
    CommonOptionsTableModel();
    inline int rowCount(const QModelIndex& index) const {
        Q_UNUSED(index);
        return 11;
    }
    inline int columnCount (const QModelIndex& index) const {
        Q_UNUSED(index);
        return 2;
    }
    inline Qt::ItemFlags flags(const QModelIndex& index ) const {
        Q_UNUSED(index);
        return Qt::ItemIsEnabled;
    }
    QVariant data(const QModelIndex& index, int role) const;
    void newData(QSharedPointer<CommonOptions> options);
};

#endif // COMMONOPTIONSTABLEMODEL_H
